# cf/urls.py
from django.urls import path
from . import views

app_name = "cf"

urlpatterns = [
    # 原有接口...
    path("", views.api_root, name="api_root"),
    path("users/", views.cf_user_list, name="user_list"),
    path("users/<int:pk>/", views.cf_user_detail, name="user_detail"),
    path("submissions/", views.submission_list, name="submission_list"),
    path("stats/", views.daily_stats_list, name="daily_stats_list"),
    path("dashboard/", views.dashboard_summary, name="dashboard_summary"),
    path("update/today/", views.update_today_data_api, name="update_today_data"),
    path("update/history/", views.update_history_data_api, name="update_history_data"),

    # 新增接口
    path("stats/weekly/", views.weekly_stats, name="weekly_stats"),
    path("stats/verdict-distribution/", views.verdict_distribution, name="verdict_distribution"),
    path("stats/difficulty-distribution/", views.problem_difficulty_distribution, name="difficulty_distribution"),
    path("users/comparison/", views.user_comparison, name="user_comparison"),
    path("update/status/", views.update_status, name="update_status"),
]